<section class="scrollable padder-md" data-ng-controller="AdminMenuEditController">
    <div class="m-b-md">
        <a href="" class="btn btn-rounded  btn-sm btn-icon btn-default pull-right" data-ng-click="close()">
            <i class="fa fa-reply"></i>
        </a>
        <h3 class="m-b-none text-black">
            <i class="fa fa-edit m-r-sm"></i>
            后台基础配置 - 菜单 - {{menu.menuName || '新增'}}
        </h3>
    </div>

    <section class="panel panel-default">
        <div class="panel-body">
            <form class="form-horizontal">
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        菜单名称：
                    </label>
                    <div class="col-md-8">
                        <input type="text" class="form-control" data-ng-model="menu.menuName" required/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        图标：
                    </label>
                    <div class="col-md-8">
                        <input type="text" class="form-control" data-ng-model="menu.icon" required/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        链接：
                    </label>
                    <div class="col-md-8">
                        <input type="text" class="form-control" data-ng-model="menu.linkUrl" required/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        排序：
                    </label>
                    <div class="col-md-8">
                        <input type="text" class="form-control" data-ng-model="menu.orderIndex"
                               onkeydown="return onlyNum(event);"
                               onkeyup="this.value=this.value.replace(/[\u4e00-\u9fa5]|[(~！@#￥%…&*（）—=·+{}：“《》？、。，‘’；】【\-)+]/g,'')"
                               onpaste="return false" ondrop="return false" required/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        状态：
                    </label>

                    <div class="col-md-8" ng-init="menu.enable=true">
                        <div class="radio-inline i-checks">
                            <label>
                                <input type="radio" data-ng-value="true" data-ng-model="menu.enable">
                                <i></i>
                                启用
                            </label>
                        </div>
                        <div class="radio-inline i-checks">
                            <label>
                                <input type="radio" data-ng-value="false" data-ng-model="menu.enable">
                                <i></i>
                                禁用
                            </label>
                        </div>
                    </div>
                </div>

                <!-- 按钮 -->
                <div class="form-group text-right" style="margin-left: 15px; margin-right: 15px;">
                    <button type="button" class="btn btn-default" data-ng-click="close()">
                        <i class="i i-arrow"></i>
                        &nbsp;返回
                    </button>
                    <button type="submit" class="btn btn-success" data-ng-click="saveObj()">
                        <i class="fa fa-save"></i>
                        &nbsp;保存
                    </button>
                </div>
            </form>
        </div>
    </section>
</section>
